<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/24
 * Time: 20:49
 */
function __autoload($classname)
{
    include $classname.".php";
}


$phone=new Phone();
$phone->name="vivo";
$phone->num=999;
$phone->price="￥2999";
$phone->pinpai="步步高";
$phone->chandi="中国";
$phone->introduce();

$book=new Book();
$book->name="我不喜欢这世界，我只喜欢你";
$book->num=5000;
$book->price="￥15";
$book->author="乔一";
$book->chubanshe="湖南少年出版社";
$book->introduce();